package part8;

/**
 * @author wcj
 * @Date 2021/5/16 18:04
 * @Version 1.0
 */
public class Part87 extends SuperClass {

    @Override
    protected void dispose() {
        System.out.println("Part87 dispose");
        super.dispose();
    }

    public static void main(String[] args) {
        Part87 part87 = new Part87();
        part87.dispose();
    }
}

class SuperClass {

    /**
     * 继承关系中的清理操作，需要和初始化时的顺序相反
     */
    protected void dispose() {
        System.out.println("super dispose");
    }
}
